#include "stdafx.h"

    namespace network
    {
        // DÈclarations static

        //we::utils::raw_128_aes_key global_aes_key_ = {0x40, 0x21, 0xBF, 0xE4, 0xB0, 0xC7, 0xB8, 0xF0, 0xB8, 0xA3, 0xB0, 0xDA, 0xC1, 0xF6, 0x24, 0x00};

        /*utils::WeaselCrypt& Session::first_packet_crypt()
        {
            static utils::WeaselCrypt global_crypto(global_aes_key_);

            return global_crypto;
        }*/

        Session::Session(boost::asio::io_service& _ioService)
        : m_socket(_ioService),
        m_read_buffer(new std::vector<unsigned char>(SB_BUF_MAX)),
        m_read_size(0)/*,
        crypt()*/
        {
        }

        void Session::stop()
        {
#if defined(_DEBUG) && defined(_OUTPUT)
            std::cout << "Fin session" << std::endl;
#endif
            m_socket.close();
        }

        boost::asio::ip::tcp::socket& Session::socket()
        {
            return m_socket;
        }

		void Session::on_packet(packet::CancelOperation& _packet)
		{
		
		}
		



    } //  // namespace network
